import { Request, Response } from 'express';

// 404处理中间件
export const notFound = (req: Request, res: Response): void => {
  res.status(404).json({
    success: false,
    message: `路径 ${req.originalUrl} 不存在`
  });
};